using System.Collections.Generic;
using Newtonsoft.Json;

namespace WebPrinter.Library.DaQu.Result
{
    /// <summary>
    /// 打印解绑结果
    /// </summary>
    public class PrinterUnbindResultData
    {
        /// <summary>
        /// 多台设备解绑成功时，返回成功的SN列表
        /// </summary>
        [JsonProperty("ok")]
        public List<string> Ok { get; set; }

        /// <summary>
        /// 多台设备发生解绑失败时返回原因列表
        /// </summary>
        [JsonProperty("fail")]
        public List<UnbindFailResult> Fail { get; set; }

        public class UnbindFailResult
        {
            [JsonProperty("sn")]
            public string Sn { get; set; }
            /// <summary>
            /// 失败原因
            /// </summary>
            [JsonProperty("reason")]
            public string Reason { get; set; }
        }
    }
}